package com.ruoyi.project.system.notices.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 通知管理对象 notices
 * 
 * @author ruoyi
 * @date 2023-07-05
 */
public class Notices extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long iid;

    /** 通知名称 */
    @Excel(name = "通知名称")
    private String title;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String content;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pubdate;

    /** 图片 */
    @Excel(name = "图片")
    private String imgurl;

    public void setIid(Long iid)
    {
        this.iid = iid;
    }

    public Long getIid()
    {
        return iid;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setPubdate(Date pubdate)
    {
        this.pubdate = pubdate;
    }

    public Date getPubdate()
    {
        return pubdate;
    }
    public void setImgurl(String imgurl)
    {
        this.imgurl = imgurl;
    }

    public String getImgurl()
    {
        return imgurl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("iid", getIid())
            .append("title", getTitle())
            .append("content", getContent())
            .append("pubdate", getPubdate())
            .append("imgurl", getImgurl())
            .toString();
    }
}
